<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta charset="UTF-8">
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap-responsive.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/style.css" />
        <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/jquery.sorted.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/bootstrap.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/ckform.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/common.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/date/WdatePicker.js"></script>
        <style type="text/css">
            body {
                padding-bottom: 40px;
            }
            .sidebar-nav {
                padding: 9px 0;
            }

            @media (max-width: 980px) {
                /* Enable use of floated navbar text */
                .navbar-text.pull-right {
                    float: none;
                    padding-left: 5px;
                    padding-right: 5px;
                }
            }
        </style>
		<script>
			function search() {
                window.location.href = "__SELF__?keyword=" + $("#keyword").val();
                $('#keyword').val('');
            }
		</script>
    </head>
    <body>
        <form class="form-inline definewidth m20" method="get" action="">
			按订单状态查询：
            <input type="text" name="keyword" id="keyword" class="abc input-default">&nbsp;
            <button type="button" class="btn btn-primary" onclick='search()'>查询</button>&nbsp;
        </form>
        <table class="table table-bordered table-hover definewidth m10">
            <thead>
                <tr>
                    <th>订单ID</th>
                    <th>会员ID</th>
                    <th>订单标题</th>
                    <th>订单状态</th>
                    <th>下单时间</th>
					<th>所分配员工ID</th>
                    <th>操作</th>
                </tr>
            </thead>
            <empty name="lists">
                <tr><td colspan="6">无查询记录</td></tr>
                <else />
                <volist name="lists" id="list">
                    <tr>
                        <td>{$list.order_id}</td>
                        <td>{$list.vip_id}</td>
                        <td>{$list.ordertitle}</td>
                        <td>
							<script>
								if({$list.status}==0){
									document.write('已下订单');
								}else{
									if({$list.status}==1){
										document.write('订单已分配');
									}else{
										document.write('订单已完成');
									}
								}
							</script>
						
						</td>
                        <td>{$list.order_time|date="Y-m-d H:i",###}</td>
						<td>{$list.emp_id}</td>
                        <td>[<a href="__APP__/Order/edit/order_id/{$list.order_id}">分配</a>]
                        </td>
                    </tr>
                </volist>
            </empty>

        </table>
        <div class="inline pull-right page">
            {$show}
        </div>
    </body>
</html>